#!/bin/bash
channelname="Linux class"
echo "你好，$USER用户！欢迎来到$channelname！"
number=$(shuf -i 1-10 -n 1)
echo $number
while [ $guess -ne $number ]
do
read -p "请输入一个1-10之间的数字：" guess
if [ $guess -eq $number ];then
	echo "恭喜你猜对了！" 
	break
elif [ $guess -gt $number ];then
	echo "猜大了！"
else
	echo "猜小了！"
fi
done
